<!-- inc:frame.top -->

<div class="position"><p><!-- inc:position --> &raquo; {:$groupname} &raquo; 分类管理</p><!-- inc:position.fr --></div>

<div class="page_pad">
  <div class="content_add"><button class="gbutton gbutton_dblue gbutton_add" type="button" onclick="qgurl('{:$mainlink}?file=category&act=add&sysgroupid={:$sysgroupid}')">添加分类</button> <button class="gbutton gbutton_dblue gbutton_add" type="button" onclick="qgurl('{:$mainlink}?file=msg&act=add&sysgroupid={:$sysgroupid}')">添加内容</button> <button class="gbutton gbutton_dblue gbutton_add" type="button" onclick="qgurl('{:$mainlink}?file=category&act=addli&sysgroupid={:$sysgroupid}')">批量添加分类</button> <button class="gbutton gbutton_dblue gbutton_add" type="button" onclick="qgurl('{:$mainlink}?file=category&act=orderlist&sysgroupid={:$sysgroupid}')">分类排序</button></div>
  
  <div class="content_box">
    <div class="content_bor">
      <table class="ltable">
        <tr class="first">
          <td width="200">主题ID</td>
          <td align="left">分类名称</td>
          <td width="460">操作</td>
        </tr>
        <!-- $catelist AS $key=>$value -->
        <tr>
          <td>[{:$value[id]}]</td>
          <td align="left">
            <a href="{:$mainlink}?file=msg&act=list&sysgroupid={:$sysgroupid}&cateid={:$value[id]}">
            <!-- if($value[level]==1)-->
            <span class="catebred">{:$value[catename]}</span>
            <!-- else -->{:$value[space]} {:$value[catename]}
            <!-- end -->
            <!-- if($system[fanti] == on) --><!-- if($value[catename_ft]) --> | {:$value[catename_ft]}<!-- end --><!-- end -->
            <!-- if($system[english] == on) --><!-- if($value[catename_en]) --> | {:$value[catename_en]}<!-- end --><!-- end -->
            <span class="colorlight">({:$value[level]}级分类)</span>
            <!-- if(!$value[status] || $value[status] == 0) -->&nbsp;<span style="color:red;">[隐藏]</span><!-- end -->
            <!-- if($value[tpl_index] || $value[tpl_list] || $value[tpl_msg]) -->&nbsp;<span style="color:red;">[自定义模板]</span><!-- end -->
            <!-- if($value[groupname]) -->&nbsp;<span class="colorlight">(字段方案: [{:$value[groupname]}])</span><!-- end -->
            </a>
          </td>
          <td>
            <a href="javascript:void(0)" onclick="qgurl('{:$mainlink}?file=category&act=modify&id={:$value[id]}');">编辑</a>&nbsp;&nbsp;
            <a href="javascript:void(0)" onclick="delete_confirm('{:$value[catename]}',{:$value[id]});">删除</a>&nbsp;&nbsp;
            <a href="javascript:void(0)" onclick="qgurl('{:$mainlink}?file=category&act=add&cateid={:$value[id]}')">添加子分类</a>&nbsp;&nbsp;
            <a href="javascript:void(0)" onclick="qgurl('{:$mainlink}?file=category&act=addli&cateid={:$value[id]}')">批量添加子分类</a>&nbsp;&nbsp;
            <a href="javascript:void(0)" onclick="qgurl('{:$mainlink}?file=msg&act=list&sysgroupid={:$sysgroupid}&cateid={:$value[id]}')">内容管理</a>
          </td>
        </tr>
        <!-- end -->
      </table>
    </div>
  </div><!--content_box-->
</div><!--page_pad-->

<script language="JavaScript">
function delete_confirm(delname,id)
{
	url = "{:$mainlink}?file=category&act=delete&sysgroupid={:$sysgroupid}&id="+id;
	tip_confirm("确认删除【"+delname+"】分类吗？如果当前分类存在子分类或内容信息，是无法删除的。分类删除后无法恢复！",url);
}
</script>

<!-- inc:frame.bottom -->